'''
Created on 30.11.2009

@author: stud
'''
from Tkinter import *
root = Tk()
textfenster = Text(root)
textfenster.insert(END,"Hallo G10b")
textfenster.pack()

def hole():
    print textfenster.get('1.0',END)
but = Button(root,text='Hole', command = hole)
but.pack(side = LEFT)


root.mainloop()


